﻿using Digitalmes.Infrastructure;

namespace Digitalmes.Core.Tests.Services;

/// <summary>
/// 测试服务基类。
/// </summary>
public abstract class BaseService
{
    public IServiceProvider Services { get; }

    public BaseService()
    {
        var _host = Host.CreateDefaultBuilder()
        .UseApplicationSetup()
        .UseInfrastructureSetup()
        .Build();

        _host.Start();

        Services = _host.Services;
    }
}
